﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExamDefaultSetEdit.aspx.cs" Inherits="E.Web.Teacher.exam.ExamDefaultSetEdit" %>
<%@ Import Namespace="E.Model" %>
<%@ Import Namespace="E.Web.Common" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>试卷模板信息</title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/exam.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/flora.datepick.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/exam.js?sid=<%=DateTime.Now %>"></script>
  <script type="text/javascript" src="/js/ajax.js"></script>
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick-zh-CN.js"></script>
</head>
<body>
    <form  id="form1" method="post" action="" >
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;试卷设置</div>
      </div>
      <div class="spe_line_2"></div>
      <div class="box_1">
        <div class="fl tr"><span class="hint">*</span>模板名称：</div>
        <div class="fl"><input type="text" id="TitleTxt" name="TitleTxt" value="<%=model.DefaultName %>" style="width:400px;" /></div>
      </div>
      <div style="margin-top:10px;"></div>
      <div id="datatable">
        <div id="SettingTemplateDiv">
            <div class="data_rows" style="font-weight: bolder;">
                <div class="d_r_qt">题型</div>
                <div class="d_r_qx">&nbsp;</div>
                <div class="d_r_qq">普通题数</div>
                <div class="d_r_qq">必选题数</div>
                <div class="d_r_qo">&nbsp;</div>
            </div>
            <% foreach (KeyValuePair<int, string> kvp in categoryList) %>
                <%{ %>
                    <div class="data_rows">
                        <div class="d_r_qt"><%=kvp.Value %></div>
                        <div class="d_r_qx"><span class="hint" id="total_<%=kvp.Key %>" >&nbsp;</span></div>
                        <div class="d_r_qq"><input type="text" id="input_<%=kvp.Key %>"  name="input_<%=kvp.Key %>" class="quantityInput" /></div>
                        <div class="d_r_qq"><input type="text" id="input_<%=kvp.Key %>_re" name="input_<%=kvp.Key %>_re" class="quantityInput" /></div>
                    </div>
                <%} %>    
            <input type="hidden" id="categoryvalue" name="categoryvalue" value="<%=WebCommon.Convert2String(categoryList) %>" />
        </div>
      </div>

    </div>
    
    <div class="block_2">
      
      <input type="hidden" id="act" name="act" value="<%=act %>" />
      <input type="hidden" id="id" name="id" value="<%=id %>" />
      <input type="hidden" id="chk_v" name="chk_v" />
      <input type="hidden" id="inputvalue" name="inputvalue" value="" />
      <input type="hidden" id="inputvalue_re" name="inputvalue_re" value="" />
      <input type="hidden" id="targetArr" name="targetArr" value="<%=targetArr %>" />
      <input type="hidden" id="valueArr" name="valueArr" value="<%=valueArr %>" />
      <input type="hidden" id="valueArr_re" name="valueArr_re" value="<%=valueArr_re %>" />
    
      <div style="width:350px; margin-top:20px; text-align:center;">
        <input type="image" src="/images/btn/confirm.gif" style="width:52px; height:22px;" onclick="return CheckExamDefault();" />
        <%--<% if (act == "u") { %>
        &nbsp;&nbsp;<a href="javascript:history.back();"><img alt="" src="/images/btn/back.gif" /></a>
        <% } %>--%>
      </div>
    </div>
    
    <script type="text/javascript">
      <% if (act == "u") { %>
        SetSettingLoadValue()
      <% } %>
    </script>
    </form>

</body>
</html>
